/**
 * @author Drew
 * 
 * this is the leader of the family in Oregon Trail. Essentially the player/user
 */

public class PartyLeader
{
	private String playerName;
	private Profession playerProf;
	private int money;
	
	/**
	 * Basic constructor of the PartyLeader
	 * @param name The player's name
	 * @param p The player's chosen profession
	 */
	public PartyLeader(String name, Profession p)
	{
		playerName = name;
		playerProf = p;
		money = p.getStartMoney();
	}
	
	/**
	 * Accessor for the player name field.
	 * @return playerName specified in the constructor
	 */
	public String getPlayerName()
	{
		return playerName;
	}
	
	/**
	 * Accessor for the money field.
	 * @return Player's current money.
	 */
	public int getMoney()
	{
		return money;
	}
	
	/**
	 * Adds money to the player's current money.
	 * @param a Amount by which we increase the player's money. May be positive or negative.
	 */
	public void addMoney(int a)
	{
		money += a;
	}

	/**
	 * Accessor for the player's profession.
	 * @return The player's profession.
	 */
	public Profession getPlayerProf()
	{
		return playerProf;
	}
}